package com.wxq.boot.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxq.boot.pojo.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from users")
    List<User> findAll();

    User findById(Integer id);

}
